{include file="common/header.tpl"}    
    <div id="vfriendContainer">
        <div id="mainContent3C">
            <div class="vfriendContainer3C">
                <div class="vfriendContent3C">
                	<div class="leftCol" style="padding-top:10px;">  
                    	{include file="product/box-navigation.tpl"}               	
                    </div>
                    <div class="rightCol noBg">
                    	<form name="frmPayment" id="frmPayment" method="post" enctype="multipart/form-data" action="{$smarty.const.HOST_VFRIEND}product/checkout?token={$strSecret|secret:"checkout"}">
                        	<input type="hidden" name="targetid" id="targetid" value="{$intTargetHexId}" />
                            <div class="boxPayment">
                                <div class="headerTitle"><h3>Giỏ hàng của bạn{if $intTargetId > 0} đã chọn gửi tặng: {$strTargetName}{/if}</h3><span>{if $AppUI->fullhouseid > 0}VON sổ tiết kiệm:{else}VON hiện có:{/if}&nbsp;<strong class="vFriendRight">{$intVfriend|number_format:0:",":"."}</strong></span></div>
                                <div class="paymentItem">
                                    <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                        <thead>
                                            <tr>
                                                <th width="100">&nbsp;</th>
                                                <th width="250" align="left">Tên sản phẩm</th>
                                                <th width="150" align="center">Đơn giá</th>
                                                <th width="100" align="center">Số lượng</th>
                                                <th align="right">Thành tiền</th>
                                            </tr>
                                        </thead>
                                        {if $arrBasket}
                                            <tfoot>
                                                <tr>
                                                    <td colspan="5" align="right">Tổng VON phải trả: <strong class="vFriendRight" id="tprice">{$arrBasketSta.tprice|number_format:0:",":"."}</strong></td>
                                                </tr>
                                                <tr>
                                                    <td colspan="5" align="center" class="noLine">
                                                        <input type="submit" value="Thanh toán" class="btn"/>
                            							<input type="button" value="Xóa giỏ hàng" class="btnCancel" onclick="javascript:deleteBasket({$intTargetId});" />
                                                    </td>
                                                </tr>
                                            </tfoot>
                                        {/if}
                                        <tbody>
                                            {if $arrBasket}
                                                {foreach item=item from=$arrBasket}
                                                    <tr id="trRow{$item.basketid}" onmouseover="javascript:onMouseOverForBasket({$item.basketid});" onmouseout="javascript:onMouseOutForBasket({$item.basketid});">
                                                        <td align="center">{image path=$item.image type=4 class="border50NB"}</td>
                                                        <td><h4>{$item.name}</h4></td>
                                                        <td align="center">{$item.punit|number_format:0:",":"."}</td>
                                                        <td align="center">
                                                        	<div class="dQuantity">                                                            	
                                                                <a href="javascript:updateQuantity(2,{$item.basketid},{$item.productid});"><img src="{$smarty.const.HOST_STATICS}img/btn/minus-inactive.gif" alt="" width="17" height="17" border="0" class="quantity" id="minus{$item.basketid}" /></a>
                                                            	<span class="quantity" id="quantity{$item.basketid}">{$item.quantity|number_format:0:",":"."}</span>
                                                            	<a href="javascript:updateQuantity(1,{$item.basketid},{$item.productid});"><img src="{$smarty.const.HOST_STATICS}img/btn/add-inactive.gif" alt="" width="17" height="17" border="0" class="quantity" id="add{$item.basketid}"/></a>
                                                           	</div>
                                                        </td>
                                                        <td align="right"><strong class="vFriendRight" id="price{$item.basketid}">{$item.price|number_format:0:",":"."}</strong></td>
                                                    </tr>
                                                {/foreach}
                                            {else}
                                                <tr><td colspan="5" align="center">Hiện tại, giỏ hàng của bạn không có sản phẩm.</td></tr>
                                            {/if}
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </form>
                   	</div>
               	</div>
            </div>
        </div>
    </div>
{include file="common/footer.tpl"}